﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="MBLeftMenu.ascx.vb" Inherits="FrontEnd_Control_Menu_MBLeftMenu" %>
<%@ Register src="../FaceBook.ascx" tagname="FaceBook" tagprefix="uc1" %>
<script type="text/javascript">
    $(function () {
        jQuery.fn.exists = function () { return this.length > 0; }
        $(".menu").each(function () {
            if ($(this).find("li").exists() == false) {
                $(this).parent().attr("style","display:none");
            }


        });
    });

</script>
<div class="categories_list">
        <div class="categories_title">
          <h1>Danh mục sản phẩm</h1>
        </div>
        <div id="globalNav">
          <nav>
            <ul>
                
            <asp:Repeater ID="rptMenu" runat="server">
            <ItemTemplate>
                        <li>
                         <li class=" fourColumns"><asp:HyperLink ID="hplTitle" runat="server">Title</asp:HyperLink>
                            <div class="sub" id="subMenu_<%#Container.ItemIndex+1%>">
                              <div class="menu">                                
                                    <asp:Repeater ID="rptMenuChild" runat="server" OnItemDataBound="rptMenuChild_ItemDataBound">
                                    <ItemTemplate> 
                                        <ul>
                                            <li><asp:HyperLink ID="hplTitle" runat="server">Title</asp:HyperLink></li>
                                         </ul>
                                    </ItemTemplate>
                                    </asp:Repeater>
                              </div>
                            </div>
                          </li>
                        </li>
                </ItemTemplate>
            </asp:Repeater>
              <%--<li class=" fourColumns"><a title="" href="">Tất cả sản phẩm</a> </li>--%>
            </ul>
          </nav>
        </div>


        <uc1:FaceBook ID="FaceBook1" runat="server" />
</div>
<asp:HiddenField ID="hidRootCat" runat="server" />